/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.service;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.devmng.dao.TaskDetailDao;
import com.thinkgem.jeesite.modules.devmng.entity.TaskDetail;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 任务详情Service
 *
 * @author panda
 * @version 2017-12-24
 */
@Service
@Transactional(readOnly = true)
public class TaskDetailService extends CrudService<TaskDetailDao, TaskDetail> {

    public int deleteByTaskMainId(String taskMainId) {
        return this.dao.deleteByTaskMainId(taskMainId);
    }

    public TaskDetail get(String id) {
        return super.get(id);
    }

    public List<TaskDetail> findList(TaskDetail taskDetail) {
        return super.findList(taskDetail);
    }

    public Page<TaskDetail> findPage(Page<TaskDetail> page, TaskDetail taskDetail) {
        return super.findPage(page, taskDetail);
    }

    @Transactional(readOnly = false)
    public void save(TaskDetail taskDetail) {
        super.save(taskDetail);
    }

    @Transactional(readOnly = false)
    public void delete(TaskDetail taskDetail) {
        super.delete(taskDetail);
    }

}